<?php

	class Shop{

		public function money($user,$price){
			
			switch ($user) {
				case 'nor':
					$res =  $price * 0.9;
					break;
				case 'vip':
					$res =  $price * 0.8;
					break;					
				case 'inn':
					$res =  $price * 0.7;
					break;					
			}
			return $res;
		}
	}
	$obj = new Shop;
	echo  $obj->money("vip",200);
?>